import request from '@/utils/request'

// 查询门店列表
export function getShopList(params) {
  return request({
    url: '/business/shopInfo/list',
    method: 'get',
    params: params
  })
}

// 查询门店详情
export function getShopInfo(shopId) {
  return request({
    url: '/business/shopInfo/' + shopId,
    method: 'get'
  })
}

// 修改门店
export function updateShop(data) {
  return request({
    url: '/business/shopInfo',
    method: 'put',
    data: data
  })
}

// 新增门店
export function addShop(data) {
  return request({
    url: '/business/shopInfo',
    method: 'post',
    data: data
  })
}

// 删除门店
export function delShop(shopIds) {
  return request({
    url: '/business/shopInfo/' + shopIds,
    method: 'delete'
  })
}
